package org.springframework.example.mybatis;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.example.mybatis.config.MybatisConfig;
import org.springframework.example.mybatis.service.UserService;

public class MybatisClient {

	public static void main(String[] args) {


		AnnotationConfigApplicationContext ac = new AnnotationConfigApplicationContext(MybatisConfig.class);
		UserService userService = ac.getBean("userService", UserService.class);
		userService.test();
	}


}
